<!--
 * @version:
 * @Author: jiaqngzhen
 * @Company: aikucun
 * @Date: 2020-06-04 16:13:30
 * @LastEditors: jiaqingzhen
 * @LastEditTime: 2020-06-08 21:32:17
 * @Description:
-->
<template>
  <div class="major_suit_warp">
    <div class="swiper-containerwarp">
      <div class="swiper-wrapper">
        <div class="swiper-slide" v-for="index in 10" :key="index">
          <img
            src="https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg"
            alt=""
          />
          <img
            src="https://akmer.aikucun.com/mshop/6b7c2911f819000a69e48a0d0b16a4e56761fa58_1589008053531_84.jpg"
            alt=""
          />
        </div>
      </div>
      <!-- Add Pagination -->
      <!-- <div class="swiper-pagination"></div> -->
    </div>
  </div>
</template>
<script>
// import Swiper from 'swiper';
// import 'swiper/dist/css/swiper.css';
import Swiper from '../utils/swiper.js';
import '../css/swiper.css';

export default {
  data() {
    return {};
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {
      new Swiper('.swiper-containerwarp', {
        slidesPerView: 4,
        loop: true,
        spaceBetween: 5,
        delay: 3000, // 3秒切换一次
        autoplay: true // 可选选项，自动滑动
      });
    }
  }
};
</script>
<style lang="scss" scoped>
.major_suit_warp {
  width: 100%;
  height: 180px;
  // background: #eee;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #000;
  margin: 0;
  padding: 0 10px;
  box-sizing: border-box;
  margin-bottom: 10px;
  .swiper-containerwarp {
    width: 100%;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
  }
  .swiper-slide {
    text-align: center;
    font-size: 18px;
    // background: #fff;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    // transform: rotateY(-90deg);
    // transition: transform 1s;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    img {
      width: 86px;
      height: 86px;
      object-fit: cover;
      border-radius: 10px;
    }
  }
  .roate {
    transform: rotateY(0deg);
  }
}
</style>
